3.2.65 \(\int (f x)^{-1+n} \log ^2(c (d+e x^n)^p) \, dx\) [165]

Optimal. Leaf size=101 \[ \frac {2 p^2 x (f x)^{-1+n}}{n}-\frac {2 p x^{1-n} (f x)^{-1+n} \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{e n}+\frac {x^{1-n} (f x)^{-1+n} \left (d+e x^n\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{e n} \]

[Out]

2*p^2*x*(f*x)^(-1+n)/n-2*p*x^(1-n)*(f*x)^(-1+n)*(d+e*x^n)*ln(c*(d+e*x^n)^p)/e/n+x^(1-n)*(f*x)^(-1+n)*(d+e*x^n)
*ln(c*(d+e*x^n)^p)^2/e/n

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {2506, 2504, 2436, 2333, 2332} \begin {gather*} \frac {x^{1-n} (f x)^{n-1} \left (d+e x^n\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{e n}-\frac {2 p x^{1-n} (f x)^{n-1} \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{e n}+\frac {2 p^2 x (f x)^{n-1}}{n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(f*x)^(-1 + n)*Log[c*(d + e*x^n)^p]^2,x]

[Out]

(2*p^2*x*(f*x)^(-1 + n))/n - (2*p*x^(1 - n)*(f*x)^(-1 + n)*(d + e*x^n)*Log[c*(d + e*x^n)^p])/(e*n) + (x^(1 - n
)*(f*x)^(-1 + n)*(d + e*x^n)*Log[c*(d + e*x^n)^p]^2)/(e*n)

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2333

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.), x_Symbol] :> Simp[x*(a + b*Log[c*x^n])^p, x] - Dist[b*n*p, In
t[(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{a, b, c, n}, x] && GtQ[p, 0] && IntegerQ[2*p]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2504

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rule 2506

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*((f_)*(x_))^(m_), x_Symbol] :> Dist[(f*x)^
m/x^m, Int[x^m*(a + b*Log[c*(d + e*x^n)^p])^q, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p, q}, x] && IntegerQ[
Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int (f x)^{-1+n} \log ^2\left (c \left (d+e x^n\right )^p\right ) \, dx &=\left (x^{1-n} (f x)^{-1+n}\right ) \int x^{-1+n} \log ^2\left (c \left (d+e x^n\right )^p\right ) \, dx\\ &=\frac {\left (x^{1-n} (f x)^{-1+n}\right ) \text {Subst}\left (\int \log ^2\left (c (d+e x)^p\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {\left (x^{1-n} (f x)^{-1+n}\right ) \text {Subst}\left (\int \log ^2\left (c x^p\right ) \, dx,x,d+e x^n\right )}{e n}\\ &=\frac {x^{1-n} (f x)^{-1+n} \left (d+e x^n\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{e n}-\frac {\left (2 p x^{1-n} (f x)^{-1+n}\right ) \text {Subst}\left (\int \log \left (c x^p\right ) \, dx,x,d+e x^n\right )}{e n}\\ &=\frac {2 p^2 x (f x)^{-1+n}}{n}-\frac {2 p x^{1-n} (f x)^{-1+n} \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{e n}+\frac {x^{1-n} (f x)^{-1+n} \left (d+e x^n\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{e n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 74, normalized size = 0.73 \begin {gather*} \frac {x^{-n} (f x)^n \left (2 e p^2 x^n-2 p \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )+\left (d+e x^n\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )\right )}{e f n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(f*x)^(-1 + n)*Log[c*(d + e*x^n)^p]^2,x]

[Out]

((f*x)^n*(2*e*p^2*x^n - 2*p*(d + e*x^n)*Log[c*(d + e*x^n)^p] + (d + e*x^n)*Log[c*(d + e*x^n)^p]^2))/(e*f*n*x^n
)

________________________________________________________________________________________

Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \left (f x \right )^{-1+n} \ln \left (c \left (d +e \,x^{n}\right )^{p}\right )^{2}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x)^(-1+n)*ln(c*(d+e*x^n)^p)^2,x)

[Out]

int((f*x)^(-1+n)*ln(c*(d+e*x^n)^p)^2,x)

________________________________________________________________________________________

Maxima [A]
time = 0.30, size = 146, normalized size = 1.45 \begin {gather*} -\frac {2 \, e p {\left (\frac {f^{n} x^{n}}{e n} - \frac {d f^{n} \log \left (\frac {e x^{n} + d}{e}\right )}{e^{2} n}\right )} \log \left ({\left (e x^{n} + d\right )}^{p} c\right )}{f} + \frac {\left (f x\right )^{n} \log \left ({\left (e x^{n} + d\right )}^{p} c\right )^{2}}{f n} - \frac {{\left (d f^{n} \log \left (e x^{n} + d\right )^{2} - 2 \, e f^{n} x^{n} - 2 \, {\left (f^{n} \log \left (e\right ) - f^{n}\right )} d \log \left (e x^{n} + d\right )\right )} p^{2}}{e f n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^(-1+n)*log(c*(d+e*x^n)^p)^2,x, algorithm="maxima")

[Out]

-2*e*p*(f^n*x^n/(e*n) - d*f^n*log((e*x^n + d)/e)/(e^2*n))*log((e*x^n + d)^p*c)/f + (f*x)^n*log((e*x^n + d)^p*c
)^2/(f*n) - (d*f^n*log(e*x^n + d)^2 - 2*e*f^n*x^n - 2*(f^n*log(e) - f^n)*d*log(e*x^n + d))*p^2/(e*f*n)

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 128, normalized size = 1.27 \begin {gather*} \frac {{\left ({\left (2 \, p^{2} e - 2 \, p e \log \left (c\right ) + e \log \left (c\right )^{2}\right )} f^{n - 1} x^{n} + {\left (f^{n - 1} p^{2} x^{n} e + d f^{n - 1} p^{2}\right )} \log \left (x^{n} e + d\right )^{2} - 2 \, {\left ({\left (p^{2} e - p e \log \left (c\right )\right )} f^{n - 1} x^{n} + {\left (d p^{2} - d p \log \left (c\right )\right )} f^{n - 1}\right )} \log \left (x^{n} e + d\right )\right )} e^{\left (-1\right )}}{n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^(-1+n)*log(c*(d+e*x^n)^p)^2,x, algorithm="fricas")

[Out]

((2*p^2*e - 2*p*e*log(c) + e*log(c)^2)*f^(n - 1)*x^n + (f^(n - 1)*p^2*x^n*e + d*f^(n - 1)*p^2)*log(x^n*e + d)^
2 - 2*((p^2*e - p*e*log(c))*f^(n - 1)*x^n + (d*p^2 - d*p*log(c))*f^(n - 1))*log(x^n*e + d))*e^(-1)/n

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)**(-1+n)*ln(c*(d+e*x**n)**p)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x)^(-1+n)*log(c*(d+e*x^n)^p)^2,x, algorithm="giac")

[Out]

integrate((f*x)^(n - 1)*log((x^n*e + d)^p*c)^2, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\ln \left (c\,{\left (d+e\,x^n\right )}^p\right )}^2\,{\left (f\,x\right )}^{n-1} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(d + e*x^n)^p)^2*(f*x)^(n - 1),x)

[Out]

int(log(c*(d + e*x^n)^p)^2*(f*x)^(n - 1), x)

________________________________________________________________________________________